package com.servicesDirectory.bo.organisation.department;

import java.util.List;

import com.servicesDirectory.common.exception.FunctionalException;
import com.servicesDirectory.common.exception.SystemException;
import com.servicesDirectory.common.vo.organisation.DepartmentVO;
import com.servicesDirectory.dao.organisation.department.DepartmentDAO;
import com.servicesDirectory.dao.organisation.department.DepartmentDAOImpl;

public class DepartmentBOImpl implements DepartmentBO {
	DepartmentDAO dao = new DepartmentDAOImpl();
	@Override
	public boolean addDepartment(DepartmentVO vo) throws FunctionalException,
			SystemException {
		return dao.addDepartment(vo);
	}

	@Override
	public boolean amendDepartment(DepartmentVO vo) throws FunctionalException,
			SystemException {
		return dao.amendDepartment(vo);
	}

	@Override
	public List<DepartmentVO> listDepartment(int directorateID, String filter,
			boolean isInclude) throws FunctionalException, SystemException {
		return dao.listDepartment(directorateID, filter, isInclude);
	}	

}
